package com.heisenhub.system.enums;

import com.heisenhub.common.redis.inter.RedisKeyInter;
import com.heisenhub.system.constats.RedisConstant;
import com.heisnenhub.common.module.inter.BusinessTypeEnumsInter;

public enum SystemEnums implements BusinessTypeEnumsInter , RedisKeyInter {


    DEPT{
        @Override
        public String redisLogKey() {
            return RedisConstant.logsKey.LOGS_KEY_DEPT;
        }

        @Override
        public String getDesc() {
            return "部门管理";
        }

        @Override
        public String getPermission() {
            return "dept";
        }

        @Override
        public String getLogTitle() {
            return "部门";
        }



        @Override
        public Integer getBusinessType() {
            return 1;
        }
    } ,

    MENUS {
        @Override
        public String redisLogKey() {
            return "LOGS:menus";
        }

        @Override
        public Integer getBusinessType() {
            return 2;
        }

        @Override
        public String getDesc() {
            return "菜单管理";
        }

        @Override
        public String getPermission() {
            return "menu";
        }

        @Override
        public String getLogTitle() {
            return "菜单";
        }
    }



}
